package com.senlingspace.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.senlingspace.common.annotation.Excel;
import com.senlingspace.common.core.domain.BaseEntity;

/**
 * 分账比例-门店项目关联对象 slkj_shop_project
 * 
 * @author wangliang
 * @date 2024-07-15
 */
public class SlkjShopProjectFz extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 项目ID */
    @Excel(name = "项目ID")
    private Long projectId;

    /** 门店ID */
    @Excel(name = "门店ID")
    private Long shopId;

    /** 状态：0正常，1删除 */
    @Excel(name = "状态：0正常，1删除")
    private Long delFlag;

    /** 分账比例 */
    @Excel(name = "分账比例")
    private Long shares;

    /** 项目周期开始 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "项目周期开始", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 项目周期截止 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "项目周期截止", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    public SlkjShopProjectFz setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    public void setShares(Long shares)
    {
        this.shares = shares;
    }

    public Long getShares() 
    {
        return shares;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("shopId", getShopId())
            .append("delFlag", getDelFlag())
            .append("shares", getShares())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
